<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>


<!DOCTYPE html>
<html>
<head>
    <title>修改学生</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--显示发favicon图标-->
    <link rel=icon href=../../../images/favicon.ico />
    <!-- 引入bootstrap -->
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <!-- 引入JQuery  bootstrap.js-->
    <script src="/js/jquery-3.2.1.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <style type="text/css">
        body{
            background: url(../../../images/a.jpg)no-repeat;
            background-size:cover;
            z-index: -1;
        }
    </style>
</head>
<body>
<!-- 顶栏 -->
<jsp:include page="top.jsp"></jsp:include>
<!-- 中间主体 -->
<div class="container" id="content">
    <div class="row">
        <jsp:include page="menu.jsp"></jsp:include>
        <div class="col-md-10">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="row">
                        <h1 style="text-align: center;">修改学生信息</h1>
                    </div>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" action="/leader/editDocument" id="editfrom" method="post">
                        <div class="form-group ">
                            <label for="inputEmail3" class="col-sm-2 control-label" >计划标题</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="inputEmail3" name="title" placeholder="请输入新标题" value="${document.title}">

                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">计划内容</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="inputPassword3" name="content" placeholder="请输入计划内容" value="${document.content}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">截止期限</label>
                            <div class="col-sm-10">
                                <input type="date" value="<fmt:formatDate value="${document.deadline}" dateStyle="medium" pattern="yyyy-MM-dd" />" name="deadline"/>
                            </div>
                        </div>
                        <div class="form-group" style="text-align: center">
                            <button class="btn btn-default" type="submit">提交</button>
                            <button class="btn btn-default" type="reset">重置</button>
                        </div>
                    </form>
                </div>

            </div>

        </div>
    </div>
</div>
<div class="container" id="footer">
    <div class="row">
        <div class="col-md-12"></div>
    </div>
</div>
</body>
<script type="text/javascript">
    $("#nav li:nth-child(2)").addClass("active")

    var collegeSelect = $("#college option");
    for (var i=0; i<collegeSelect.length; i++) {
        if (collegeSelect[i].value == '${student.collegeid}') {
            collegeSelect[i].selected = true;
        }
    }
</script>
</html>